package model

import (
	"time"
)

type AuCars struct {
	CarId                int       `xorm:"not null pk autoincr INT(10)"`
	CarNo                string    `xorm:"not null index VARCHAR(20)"`
	Sid                  int       `xorm:"not null default 0 index INT(11)"`
	Sno                  string    `xorm:"VARCHAR(20)"`
	MbrandId             int       `xorm:"not null index INT(10)"`
	BrandId              int       `xorm:"not null index INT(10)"`
	SeriesId             int       `xorm:"not null index INT(10)"`
	ModelId              int       `xorm:"not null INT(10)"`
	CustomModel          string    `xorm:"VARCHAR(100)"`
	OwnerId              int       `xorm:"not null index INT(10)"`
	CarStatus            int       `xorm:"not null SMALLINT(3)"`
	Remark               string    `xorm:"TEXT"`
	ModifyTime           time.Time `xorm:"DATETIME"`
	Posttime             time.Time `xorm:"not null DATETIME"`
	FirstRegDate         time.Time `xorm:"not null DATE"`
	CompositeState       int       `xorm:"not null INT(6)"`
	AccidentLevel        string    `xorm:"not null CHAR(6)"`
	HistoryState         string    `xorm:"not null VARCHAR(20)"`
	PointerMileage       float32   `xorm:"not null FLOAT"`
	ExFactoryDate        time.Time `xorm:"not null DATE"`
	RegCity              int       `xorm:"not null INT(10)"`
	RegArea              int       `xorm:"INT(10)"`
	Emission             int       `xorm:"not null SMALLINT(3)"`
	CarCc                string    `xorm:"not null VARCHAR(10)"`
	Turbo                int       `xorm:"not null TINYINT(1)"`
	Gearbox              int       `xorm:"not null SMALLINT(3)"`
	DriveMethod          int       `xorm:"not null SMALLINT(3)"`
	FuelType             int       `xorm:"not null SMALLINT(3)"`
	CarColor             int       `xorm:"SMALLINT(3)"`
	EngineNo             string    `xorm:"not null VARCHAR(20)"`
	CurUseType           int       `xorm:"not null SMALLINT(3)"`
	UseProperties        int       `xorm:"not null SMALLINT(3)"`
	LocationArea         int       `xorm:"not null index INT(10)"`
	TransferLimit        int       `xorm:"not null default 3 SMALLINT(3)"`
	Vin                  string    `xorm:"not null VARCHAR(100)"`
	PlatePrefix          int       `xorm:"not null SMALLINT(3)"`
	PlateSuffix          string    `xorm:"not null VARCHAR(8)"`
	AuTimes              int       `xorm:"not null SMALLINT(3)"`
	UnsoldTimes          int       `xorm:"not null default 0 SMALLINT(3)"`
	BidBestPrice         float64   `xorm:"not null DOUBLE(10,2)"`
	SuggestMaxPrice      float64   `xorm:"not null DOUBLE(10,2)"`
	SuggestMinPrice      float64   `xorm:"not null DOUBLE(10,2)"`
	PriceEmpId           int       `xorm:"INT(10)"`
	PriceTime            time.Time `xorm:"DATETIME"`
	ReservePrice         float64   `xorm:"not null DOUBLE(10,2)"`
	ShowReservePrice     int       `xorm:"default 0 TINYINT(1)"`
	IsProtoUploaded      int       `xorm:"not null TINYINT(1)"`
	View                 int       `xorm:"not null INT(11)"`
	CarryingNum          string    `xorm:"not null VARCHAR(6)"`
	TyreType             string    `xorm:"not null VARCHAR(20)"`
	IsImported           int       `xorm:"not null SMALLINT(3)"`
	TransferTimes        int       `xorm:"not null SMALLINT(3)"`
	BrandModel           string    `xorm:"not null VARCHAR(30)"`
	GetMethod            int       `xorm:"not null SMALLINT(3)"`
	CarType              int       `xorm:"not null SMALLINT(3)"`
	ReAuctionType        int       `xorm:"not null TINYINT(1)"`
	ReAuctionReason      string    `xorm:"not null default '' VARCHAR(255)"`
	SuccessPrice         float64   `xorm:"not null DOUBLE(10,2)"`
	FirstMoney           float64   `xorm:"not null DOUBLE(10,2)"`
	ReservePriceHistory  string    `xorm:"TEXT"`
	Mot                  int       `xorm:"not null TINYINT(1)"`
	CarSource            int       `xorm:"not null TINYINT(1)"`
	Peccancy             int       `xorm:"not null TINYINT(1)"`
	ThreeInOne           int       `xorm:"not null TINYINT(1)"`
	TailMoney            float64   `xorm:"not null DOUBLE(10,2)"`
	PayStatus            int       `xorm:"not null default 0 TINYINT(4)"`
	BidUpPrice           float64   `xorm:"not null DOUBLE(10,2)"`
	CutDownPrice         float64   `xorm:"not null DOUBLE(10,2)"`
	IsGameOver           int       `xorm:"not null TINYINT(1)"`
	BargainLimit         float64   `xorm:"not null default 2000.00 DOUBLE(10,2)"`
	BargainPriceMin      int       `xorm:"not null default 1 INT(11)"`
	BargainPriceMax      int       `xorm:"not null default 50 INT(11)"`
	AuditEmpId           int       `xorm:"not null default 0 INT(10)"`
	AuditTime            time.Time `xorm:"not null DATETIME"`
	DamagePics           string    `xorm:"TEXT"`
	OldModelId           int       `xorm:"not null INT(11)"`
	DealType             int       `xorm:"default 0 TINYINT(1)"`
	FailType             int       `xorm:"default 0 TINYINT(1)"`
	IsDealerBreach       int       `xorm:"not null default 0 TINYINT(1)"`
	IsSelfReceive        int       `xorm:"not null default 0 TINYINT(1)"`
	SelfReceiveDealerId  int       `xorm:"not null default 0 index INT(10)"`
	SelfReceivePrice     float32   `xorm:"not null default 0.00 FLOAT(10,2)"`
	DeliveryMode         int       `xorm:"not null TINYINT(1)"`
	IsValid              int       `xorm:"not null default 1 TINYINT(1)"`
	SuggestBidStartPrice float64   `xorm:"not null DOUBLE(10,2)"`
	LastTransferTime     time.Time `xorm:"not null DATE"`
	OldRegProvince       int       `xorm:"not null INT(11)"`
	OldRegCity           int       `xorm:"not null INT(11)"`
	OldUseType           int       `xorm:"not null TINYINT(1)"`
	ReportTmplateVersion int       `xorm:"not null INT(11)"`
	IsReCheck            int       `xorm:"not null default 0 TINYINT(1)"`
}
